//------------------------------------------------------------------------------------
#ifndef __CMAINWINDOW_H__
#define __CMAINWINDOW_H__
//------------------------------------------------------------------------------------
#include <QMainWindow>
#include <QTimer>
#include "ui_CMainWindow.h"
#include "CSoundPlayer.h"
//------------------------------------------------------------------------------------
class CMainWindow : public QMainWindow, private Ui::CMainWindow
{
    Q_OBJECT
    public:
        CMainWindow(QWidget *parent = 0);
        ~CMainWindow(void);
    private:
        QTimer *timer;
        QTimer *timerTps;
		CSoundPlayer *fondPlayer;
		CSoundPlayer *mangePlayer;
		CSoundPlayer *oneUpPlayer;
		CSoundPlayer *lostLifePlayer;
		CSoundPlayer *pausePlayer;
		CSoundPlayer *gameOverPlayer;
        int vitesse;
		int temps;
		int nbVie;
		bool inPause;
    private slots:
        void onTimerTimeout(void);
        void onTimerTpsTimeout(void);
        void on_wGamePlay_die(void);
        void on_wGamePlay_mangeSouris(void);
		void on_wGamePlay_pause(void);
};
//------------------------------------------------------------------------------------
#endif //__CMAINWINDOW_H__
//------------------------------------------------------------------------------------
